:root {
    --primary: #B39755;
    --primary-light: #d6c7a0;
    --primary-dark: #9a8249;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
    --darker-gray: #495057;
    --secondary: #1a2a3a;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
    --gradient: linear-gradient(135deg, #B39755, #9a8249);
    --section-radius: 18px;
    --blue-gradient: linear-gradient(135deg, #1a2a3a, #2c3e50);
    --gold-gradient: linear-gradient(135deg, #c5a338, #b39755);
    --dark: #212529;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gold-primary: #c5a338;
    --gold-hover: rgba(197, 163, 56, 0.12);
    --gold-active: rgba(197, 163, 56, 0.18);
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Modern Navbar */
.navbar {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 12px 5%;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s ease,
        background 0.4s ease;
    z-index: 1000;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.86);
    position: sticky;
    top: 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    color: var(--text-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
    display: inline-block;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: width 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.navbar-brand:hover {
    color: var(--gold-primary);
}

.navbar-brand:hover::after {
    width: 100%;
}

.navbar-nav {
    gap: 4px;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--text-secondary);
    padding: 10px 18px;
    transition: color 0.25s ease,
        background 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 0.2s ease;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gold-primary);
    z-index: -1;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-nav .nav-link:hover {
    color: var(--text-primary);
    background: var(--gold-hover);
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: var(--gold-primary) !important;
    font-weight: 700;
    background: var(--gold-active);
    box-shadow: inset 0 0 0 1px rgba(197, 163, 56, 0.25);
}

.navbar-nav .nav-link.active::before {
    transform: scaleY(0.05);
}

/* Dynamic scroll effects */
.navbar.scrolled {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 8px 5%;
    background-color: rgba(255, 255, 255, 0.96);
}
/* Dropdown menu styling */
.navbar .dropdown-menu {
  background-color: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  min-width: 240px;
  transition: all 0.3s ease-in-out;
}

.navbar .dropdown-menu .dropdown-item {
  padding: 10px 20px;
  color: rgb(255, 157, 0);
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}

.navbar .dropdown-menu .dropdown-item:hover {
  background-color: rgb(255, 243, 220);
  color: #000;
  font-weight: 600;
  border-left: 4px solid rgb(255, 157, 0);
}

/* Dropdown arrow */
.navbar .nav-link.dropdown-toggle::after {
  border-top-color: rgb(255, 157, 0);
  margin-left: 6px;
}

/* Scrolled navbar dropdown behavior */
#navbar.scrolled .dropdown-menu .dropdown-item {
  color: #000;
}

#navbar.scrolled .dropdown-menu .dropdown-item:hover {
  background-color: rgb(255, 236, 202);
  color: rgb(255, 157, 0);
}

/* Fade-in dropdown animation */
.dropdown-menu {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.show > .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Mobile specific tweaks */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: #fff;
    border-radius: 0 0 12px 12px;
    padding: 1rem;
  }

  .navbar .nav-link,
  .navbar .dropdown-menu .dropdown-item {
    color: #000 !important;
  }

  .navbar .dropdown-menu {
    box-shadow: none;
    border-radius: 0;
    padding-left: 1rem;
  }

  .navbar .dropdown-menu .dropdown-item {
    padding: 8px 0;
    border-left: 3px solid transparent;
  }

  .navbar .dropdown-menu .dropdown-item:hover {
    background-color: transparent;
    color: rgb(255, 157, 0);
    border-left-color: rgb(255, 157, 0);
  }
}
/* Mobile enhancements */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 7%;
        backdrop-filter: none;
        background-color: #fff;
    }

    .navbar-nav {
        gap: 2px;
        padding: 8px 0;
    }

    .navbar-nav .nav-link {
        padding: 12px 16px;
        border-radius: 8px;
        margin: 4px 0;
    }

    .navbar.scrolled {
        padding: 8px 7%;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(26, 42, 58, 0.85), rgba(44, 62, 80, 0.9)), 
              url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3') center/cover;
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(30deg);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.92);
}

.cta-button {
    display: inline-block;
    background: var(--gold-gradient);
    color: white;
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(180, 151, 85, 0.3);
    border: none;
    cursor: pointer;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
    z-index: -1;
}

.cta-button:hover:before {
    width: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(180, 151, 85, 0.4);
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 70px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 25px 30px;
    border-radius: 15px;
    min-width: 180px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.25);
}

.stat-value {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary);
    border-radius: 3px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 25px auto 0;
    line-height: 1.8;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gold-gradient);
    transition: var(--transition);
    transform: scaleX(0);
    transform-origin: left;
}

.service-card:hover:before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.service-icon {
    background: var(--primary);
    color: white;
    font-size: 2.8rem;
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-icon:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(30deg);
}

.service-content {
    padding: 35px;
}

.service-content h3 {
    font-size: 1.6rem;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 15px;
}

.service-content h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.service-content p {
    margin-bottom: 20px;
    color: #555;
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    position: relative;
}

.service-link:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.service-link:hover {
    color: var(--secondary);
}

.service-link:hover:after {
    width: 100%;
}

.service-link i {
    margin-left: 8px;
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Loan Against Property Section */
.loan-section {
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.loan-section:before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(26, 42, 58, 0.05);
}

.loan-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.loan-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.loan-image {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
    border: 15px solid white;
}

.loan-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.loan-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.features-list {
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    transition: var(--transition);
    border-left: 4px solid var(--secondary);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    color: var(--secondary);
    font-size: 1.8rem;
    margin-right: 20px;
    min-width: 40px;
}

/* Process Section */
#process {
    background: linear-gradient(to right, rgba(26, 42, 58, 0.05), rgba(26, 42, 58, 0.1));
    padding: 80px 0;
    position: relative;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    flex-wrap: wrap;
    position: relative;
}

.process-steps:before {
    content: '';
    position: absolute;
    top: 50px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: var(--secondary);
    z-index: 0;
}

.step {
    text-align: center;
    flex: 1;
    min-width: 220px;
    margin: 0 10px 30px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--gold-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 25px;
    box-shadow: 0 8px 20px rgba(180, 151, 85, 0.3);
    transition: var(--transition);
}

.step:hover .step-number {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 25px rgba(180, 151, 85, 0.4);
}

.step h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.step p {
    color: var(--gray);
}

/* Contact Section */
.contact-section {
    background: var(--blue-gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-section:before {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.contact-container {
    display: flex;
    gap: 60px;
}

.contact-info {
    flex: 1;
    position: relative;
    z-index: 2;
}

.contact-form {
    flex: 1;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
}

.contact-form h3 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 15px;
}

.contact-form h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(180, 151, 85, 0.2);
    outline: none;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: var(--transition);
    border-left: 4px solid var(--secondary);
}

.contact-info-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-right: 20px;
    min-width: 40px;
}

.contact-info-text h4 {
    color: var(--primary);
    margin-bottom: 8px;
}

.contact-info-text p,
.contact-info-text a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info-text a:hover {
    color: white;
    text-decoration: underline;
}

/* Footer */
.footer-dark {
    background-color: var(--dark); /* fixed dark color for footer */
    color: white;
    position: relative;
    overflow: hidden;
}

.footer-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark, #d1a845));
}

/* ========== Social Icons ========== */
.social-icon {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--primary, #e7c873);
    color: var(--secondary, #1e1e2f);
    transform: translateY(-5px);
}

/* ========== Highlighted Text ========== */
.highlight {
    position: relative;
    z-index: 1;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(231, 200, 115, 0.3);
    z-index: -1;
    transform: skewX(-15deg);
}

/* ========== Scroll Animations ========== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Custom Utility Classes ========== */
.bg-custom-light {
    background-color: var(--light, #f8f9fa) !important;
}

.bg-deep-blue {
    background-color: var(--secondary, #1e1e2f);
}

.ptb-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.mb-6 {
    margin-bottom: 5rem !important;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
}

/* ========== Navbar ========== */
.navbar-nav {
    align-items: center;
}

/* ========== Responsive Fixes ========== */
@media (max-width: 768px) {
    .display-title {
        font-size: 2.8rem;
    }

    .hero-section {
        padding: 120px 0 80px;
    }

    .stats-number {
        font-size: 2.8rem;
    }

    .stats-section {
        padding: 40px 20px;
    }

    .testimonial-card {
        padding: 30px 20px;
    }

    .navbar-collapse {
        background-color: #fff;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .stats-item {
        padding: 20px 15px;
    }
}
